﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;

namespace Studio
{
	// Token: 0x0200054B RID: 1355
	public class ChangeFocusSender : MonoBehaviour, ISelectHandler, IDeselectHandler, IEventSystemHandler
	{
		// Token: 0x060022A2 RID: 8866 RVA: 0x000D06B4 File Offset: 0x000CE8B4
		public void OnDeselect(BaseEventData eventData)
		{
			if (this.changeFocus)
			{
				this.changeFocus.select = -1;
			}
		}

		// Token: 0x060022A3 RID: 8867 RVA: 0x000D06D4 File Offset: 0x000CE8D4
		public void OnSelect(BaseEventData eventData)
		{
			if (this.changeFocus)
			{
				this.changeFocus.select = this.index;
			}
		}

		// Token: 0x040023B4 RID: 9140
		[SerializeField]
		private ChangeFocus changeFocus;

		// Token: 0x040023B5 RID: 9141
		[SerializeField]
		private int index;
	}
}
